package com.sh.rbac.domain.vo.loginLog;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * 登录日志视图
 *
 * @author wb
 * @since 2024-07-04
 */

@Schema(description = "登录日志视图")
@Data
public class LoginLogVO {
    @Schema(description = "ID")
    private Long id;

    @Schema(description = "用户名称")
    private String username;

    @Schema(description = "登录IP")
    private String loginIp;

    @Schema(description = "登录地址")
    private String loginAddr;

    @Schema(description = "登录时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date loginTime;

    @Schema(description = "登录状态")
    private String loginStatus;

    @Schema(description = "浏览器")
    private String driverName;

    @Schema(description = "操作系统")
    private String osName;

    @Schema(description = "描述")
    private String description;
}
